package org.feiye.studyday08;

import java.util.Scanner;

public class Arrays_02 {

	public static void main(String[] args) {
		int[][] arrs = new int[3][5];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < arrs.length; i++) {
			for (int j = 0; j < arrs[i].length; j++) {
				System.out.println("请输入第" + (i + 1) + "班第" + (j + 1) + "名学生的成绩：");
				arrs[i][j] = sc.nextInt();
			}
		}
		int total = 0;
		for (int i = 0; i < arrs.length; i++) {
			total = 0;// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
			for (int j = 0; j < arrs[i].length; j++) {
				total += arrs[i][j];
			}
			System.out.println((i + 1) + "班总分是" + total);
		}

	}

}
